﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace FindString
{
    public class findString
    {                
        public List<Word> faundInDB(String text)
        {
            List<Word> result = null;
            String query = @"select * from Dictionary.dbo.Words where Dictionary.dbo.Words.word like '" + text + "%'";
            DictionaryDataContext connect = new DictionaryDataContext();
            result = connect.ExecuteQuery<Word>(query).ToList();
            return result;
        }
        
    }
}
